const modules: any = import.meta.glob('./*.vue', { eager: true })

export const compWidget = (key: string) => {
	if (!key || !modules[`./${key}.vue`]) return undefined
	return modules[`./${key}.vue`].default
}
